package cn.iocoder.yudao.module.digital.service.cardchannel.model;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum ThirdPartyApiRequestTypeEnum implements IntArrayValuable {
    POST(0, "POST"),
    GET(1, "GET");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ThirdPartyApiRequestTypeEnum::getValue).toArray();

    /**
     * 状态
     */
    private final Integer value;

    /**
     * 状态名
     */
    private final String desc;

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
